package com.bookstore.spring.service;


import com.bookstore.spring.pojo.User;
import com.bookstore.spring.dao.UserMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Admin on 9/16 0016.
 */
@Service
public class UserServiceImp implements UserService {
    @Autowired
    UserMap userMap;

    public User login(String username, String password) {
        User user = userMap.getUserNaPa(username, password);
        return user;
    }


    public UserMap getUserMap() {
        return userMap;
    }

    public void setUserMap(UserMap userMap) {
        this.userMap = userMap;
    }
}
